﻿@model UserViewModel
<div class="modal">

    <div class="modal-dialog">
        <div class="modal-content animated flipInY">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true"> &times; </span><span class="sr-only"> 关闭 </span>
                </button>
                <h4 class="modal-title" id="myModalLabel"> 为员工设置用户登录 </h4>
            </div>
            <div class="modal-body" id="modalcontent">
                @using (Html.Bootstrap().BeginForm(c => c.Horizontal()))
                {
                    @Html.ValidationSummary()
                    <div class="clearfix">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#tab0" data-toggle="tab">基本</a></li>
                            <li class=""><a href="#tab1" data-toggle="tab">扩展信息</a></li>
                        </ul>
                        <div class="tab-content">
                            <div class="tab-pane fade  in active" id="tab0">
                                @Html.HiddenFor(x => x.Id)
                                <div class="col-md-6">
                                    <div class="form-group">
                                        @Html.LabelFor(m => m.UserName, new { @class = "col-md-3 col-sm-5 control-label" })<div class="col-md-9 col-sm-7">
                                            @Html.Bootstrap().TextBoxFor(m => m.UserName)
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        @Html.LabelFor(m => m.EMail, new { @class = "col-md-3 col-sm-5 control-label" })<div class="col-md-9 col-sm-7">
                                            @Html.Bootstrap().TextBoxFor(m => m.EMail)
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        @Html.LabelFor(m => m.Password, new { @class = "col-md-3 col-sm-5 control-label" })<div class="col-md-9 col-sm-7">
                                            @Html.Bootstrap().TextBoxFor(m => m.Password)
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-3 col-sm-5 control-label" })<div class="col-md-9 col-sm-7">
                                            @Html.Bootstrap().TextBoxFor(m => m.ConfirmPassword)
                                        </div>
                                    </div>
                                </div>
                        

                            </div>
                            <div class="tab-pane fade " id="tab1">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        @Html.LabelFor(m => m.Profile.QQ, new { @class = "col-md-3 col-sm-5 control-label" })<div class="col-md-9 col-sm-7">
                                            @Html.Bootstrap().TextBoxFor(m => m.Profile.QQ)
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        @Html.LabelFor(m => m.Profile.Wechart, new { @class = "col-md-3 col-sm-5 control-label" })<div class="col-md-9 col-sm-7">
                                            @Html.Bootstrap().TextBoxFor(m => m.Profile.Wechart)
                                        </div>
                                    </div>
                                </div>

                            </div>
                            
                        </div>
                    </div>
                    @Html.Hidden("employeeId", Request.QueryString["employeeId"])
                }
            </div>
            <div class="modal-footer">
                @Html.Bootstrap().Button("保存").Style(BootstrapStyle.Primary).Click("window.app.saveForm(event,'" + Url.Action("AsUser") + "');").Attribute("data-search", HttpContext.Current.Request.QueryString["ListControlId"])
                @Html.Bootstrap().Button("关闭").Style(BootstrapStyle.Default).Attribute("data-dismiss", "modal")
            </div>
        </div>
    </div>
</div>
